gsk: API docs fixes
authorBastien Nocera <hadess@hadess.net>
Thu, 7 Mar 2019 15:29:28 +0000 (16:29 +0100)
committerBastien Nocera <hadess@hadess.net>
Thu, 7 Mar 2019 15:29:28 +0000 (16:29 +0100)
gsk/gskenums.h:181: Error: Gsk: multiple "@GSK_TRANSFORM_CATEGORY_2D" parameters for identifier "GskTransformCategory":
 * @GSK_TRANSFORM_CATEGORY_2D: The matrix is a 2D matrix. This is equivalent
    ^
gsk/gsktransform.c:1342: Warning: Gsk: gsk_transform_to_2d: unknown parameter 'm' in documentation comment, should be 'self'
gsk/gsktransform.c:1368: Warning: Gsk: gsk_transform_to_2d: invalid return annotation
gsk/gsktransform.c:1461: Warning: Gsk: gsk_transform_to_translate: unknown parameter 'm' in documentation comment, should be 'self'

gsk/gskenums.h
gsk/gsktransform.c

index aa6978cfe4f9ce09b6155f2e80b1aec96ede39c2..aaaa3b4cb9147d94dfee8bd0b200b6ca1323ca17 100644 (file)
@@ -176,7 +176,7 @@ typedef enum {
  *     determined.
  * @GSK_TRANSFORM_CATEGORY_ANY: Analyzing the matrix concluded that it does
  *     not fit in any other category.
- * @GSK_TRANSFORM_CATEGORY_2D: The matrix is a 3D matrix. This means that
+ * @GSK_TRANSFORM_CATEGORY_3D: The matrix is a 3D matrix. This means that
  *     the w column (the last column) has the values (0, 0, 0, 1).
  * @GSK_TRANSFORM_CATEGORY_2D: The matrix is a 2D matrix. This is equivalent
  *     to graphene_matrix_is_2d() returning %TRUE. In particular, this
index a4da1cfad317fc6815a979607e7d6c75587961da..d5e4ac4e5a1a32232c86652cd99f15e38d8534ea 100644 (file)
@@ -1339,7 +1339,7 @@ gsk_transform_to_matrix (GskTransform      *self,
 
 /**
  * gsk_transform_to_2d:
- * @m: a 2D #GskTransform
+ * @self: a 2D #GskTransform
  * @out_xx: (out): return location for the xx member
  * @out_yx: (out): return location for the yx member
  * @out_xy: (out): return location for the xy member
@@ -1364,9 +1364,6 @@ gsk_transform_to_matrix (GskTransform      *self,
  * This function can be used to convert between a #GskTransform
  * and a matrix type from other 2D drawing libraries, in particular
  * Cairo.
- *
- * Returns: %TRUE if the matrix is compatible with an 2D
- *   transformation matrix.
  */
 void
 gsk_transform_to_2d (GskTransform *self,
@@ -1458,7 +1455,7 @@ gsk_transform_to_affine (GskTransform *self,
 
 /**
  * gsk_transform_to_translate:
- * @m: a #GskTransform
+ * @self: a #GskTransform
  * @out_dx: (out): return location for the translation
  *     in the x direction
  * @out_dy: (out): return location for the translation